<?php $this->load->view('wap/head.php'); ?>
<!-- 模拟变量 -->
<input type="hidden" name="title" id="title" value="<?php echo $view['title']; ?>" />

<!-- owl.carousel-->
<link rel="stylesheet" href="<?php echo base_url(); ?>default/wap/css/owl.carousel.css">
<link rel="stylesheet" href="<?php echo base_url(); ?>default/wap/css/owl.theme.css">
<script src="<?php echo base_url(); ?>default/wap/js/owl.carousel.min.js"></script>

<script src="<?php echo base_url(); ?>default/wap/js/page.js"></script>

<style>body{background-color:#f0f0e1;}</style>

<div class="pages center-block pages-page">

  <div class="hd-page"> <a href="<?php echo site_url('wap/index/index/')?>"><i class="icon-jt"></i></a>
    <img class="hd-page-logo" src="<?php echo base_url(); ?>default/wap/img/logo.png"></div>

  <div class="bd-page">
    <div class="tp-page">
      <img class="thumb" src="<?php if($view['picture']){echo base_url().$view['picture'];}else{echo base_url().'default/wap/img/g2.jpg';} ?>" />
      <div class="info">
        <div class="info-right">
          <p >
            <span class="popularity-txt">人气：</span>
            <span class="popularity"><?php echo $view['click']; ?></span>
          </p>
          <p>
            <a  href="<?php echo $view['url']; ?>" class="btn btn-play">开始游戏</a>
          </p>
        </div>
        <div class="info-left">
          <p class="hd"><?php echo $view['title']; ?></p>
          <p>
            <span class="tag tag-blue">品牌</span>
            <span class="tag-name"><?php echo $view['client_title']; ?></span>
          </p>
          <p>
            <span class="tag tag-red">奖品</span>
            <span class="tag-name"><?php echo $view['prize']; ?></span>
          </p>
          <p>
            <span class="tag tag-green">截止日期</span>
            <span class="tag-name"><?php echo date('Y.m.d',$view['endtime']); ?></span>
          </p>
        </div>
      </div>

    </div>

    <div class="icon-bar"> <i class="icon-link icon-link-l"></i>
      <i class="icon-link icon-link-r"></i>
    </div>

    <div class="md-page">

      <p class="hd">简介</p>
      <p class="desc"><?php echo $view['description']; ?></p>
      <p class="hd">玩法</p>
      <div class="desc"><?php echo $view['play']; ?></div>
      <div class="line"></div>
      <p class="hd">
        <span class="tag tag-red">奖品</span>
      </p>
      <p>
        <span class="tag-name"><?php echo $view['prize']; ?></span>
      </p>

      <p class="hd">
        <span class="tag tag-green">截止日期</span>
      </p>
      <p>
        <span class="tag-name"><?php echo date('Y.m.d',$view['endtime']); ?></span>
      </p>

    </div>

  </div>

  <div class="fd-page">
    <div class="owl-carousel owl-page">
      <div>
        <ul>
            <?php foreach($array_category as $key=>$val){ ?>
                <li>
                    <a href="<?php echo site_url('wap/index/prize_view/'.$val['id'])?>">
                        <img class="thumb" src="<?php echo base_url($val['picture']); ?>">
                        <p><?php echo $val['title']; ?></p>
                    </a>
                </li>
            <?php } ?>
        </ul>
      </div>
    </div>
  </div>

<?php $this->load->view('wap/foot.php'); ?>